﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace Tanmia.Basis.Security
{
    /// <summary>
    /// Service that performs the authentication of the current user.
    /// </summary>
    public interface IAuthenticationService
    {
        /// <summary>
        /// Gets Logged in user information.
        /// </summary>
        ApplicationUserInfo User { get; }

        /// <summary>
        /// Verifies that the specified user-name and password is correct and log the user in.
        /// </summary>
        bool Authenticate(ApplicationUserInfo userInfo);
    }
}
